package com.enterprise.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.enterprise.dao.BaseDao;
import com.enterprise.dao.LogoDao;
import com.enterprise.entity.Logo;
import com.enterprise.entity.page.PageModel;

@Repository("logoDao")
public class LogoDaoImpl implements LogoDao{
	
	@Resource
	private BaseDao dao;

	public void setDao(BaseDao dao) {
		this.dao = dao;
	}

	@Override
	public int insert(Logo e) {
		// TODO Auto-generated method stub
		return dao.insert("logo.insert", e);
	}

	@Override
	public int delete(Logo e) {
		// TODO Auto-generated method stub
		return dao.delete("logo.delete", e);
	}

	@Override
	public int update(Logo e) {
		// TODO Auto-generated method stub
		return dao.update("logo.update", e);
	}

	@Override
	public Logo selectOne(Logo e) {
		// TODO Auto-generated method stub
		return (Logo) dao.selectOne("logo.selectOne", e);
	}

	@Override
	public PageModel selectPageList(Logo e) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Logo> selectList(Logo e) {
		// TODO Auto-generated method stub
		System.out.println(1111111111);
		return dao.selectList("logo.selectList", e);
	}

	@Override
	public int deleteById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Logo selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

}
